# 异常
# def func():
#     raise Exception("异常！")
# func()

# def login():
#     pwd = input("input your password:")
#     if len(pwd) < 8:
#         raise Exception("password is too short")
#     return  print("success")
# try :         #捕获异常是为了让程序遇到异常时能够继续运行
#     login()
# except Exception as e:
#     print(e)
# # login()

